import 'package:flutter/material.dart';

class MineHead extends StatelessWidget {
  const MineHead(
      {super.key,
      this.headUrl =
          "https://ecmb.bdimg.com/tam-ogel/-85053534_412754379_1920_1440.jpg",
      this.userName = "test"});
  final String headUrl;
  final String userName;

  static const Color _bgColor = Colors.white;

  @override
  Widget build(BuildContext context) {
    return Container(
        color: _bgColor,
        height: 260,
        padding:
            const EdgeInsets.only(top: 120, left: 30, right: 20, bottom: 50),
        child: Container(
          color: _bgColor,
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Container(
                color: _bgColor,
                child: Row(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    ClipRRect(
                      borderRadius: BorderRadius.circular(12.0),
                      child: Image.network(
                        headUrl,
                        width: 60,
                        height: 60,
                        fit: BoxFit.cover,
                      ),
                    ),
                    const SizedBox(
                      width: 15,
                    ),
                    Column(
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: [
                        Text(
                          userName,
                          textAlign: TextAlign.left,
                        ),
                        const SizedBox(
                          height: 8,
                        ),
                        const Text(
                          "微信号：GeSHi897990",
                          textAlign: TextAlign.left,
                        ),
                        const SizedBox(
                          height: 8,
                        ),
                        const Text(
                          "123",
                          textAlign: TextAlign.left,
                        ),
                      ],
                    ),
                  ],
                ),
              ),
              Container(
                color: _bgColor,
                child: const Row(
                  children: [
                    Icon(Icons.qr_code),
                    Icon(Icons.arrow_forward_ios)
                  ],
                ),
              ),
            ],
          ),
        ));
  }
}
